<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            height: 400px;
            width: 400px;
            border: 1px solid #000;
            position: relative;
            transform-style: preserve-3d;
            perspective: 10000px;
        }
        .box .inner{
            width: 100px;
            height: 100px;
            background-color: pink;
            position: absolute;
             /* 位移 */
            transform: translate(-50%,-50%);
            left: 50%;
            top: 50%;
            transition: all 1s linear;
            transform-origin: right center;
            /* 翻转后看不到背面 */
            backface-visibility: hidden;
        }
        .box:hover .inner{
            /* 旋转角度 */
            transform: rotateY(200deg);
            transform: rotateZ(1200deg);
            /* 倾斜角度 */
            /* transform: skew(45deg); */
            /* 缩放 */
            /* transform: scale(2); */
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="inner"></div>
    </div>
</body>
</html>